package com.ctshk.rpc.system.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.model.PageResponse;
import com.ctshk.common.model.TokenUser;
import com.ctshk.rpc.system.dto.MainDataStationDTO;
import com.ctshk.rpc.system.req.MainDataStationListReq;
import com.ctshk.rpc.system.req.MainDataStationReq;
import com.ctshk.rpc.system.req.main.data.StationUpdateStatusReq;

import java.util.List;

/**
 * <p>
 * 火车站点主数据 服务类
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-04-23
 */
public interface IMainDataStationService {

    Result<PageResponse<MainDataStationDTO>> list(MainDataStationListReq req);

    Result detail(Long id);

    Result add(MainDataStationReq req, TokenUser currentUser);

    Result batchAdd(List<MainDataStationReq> req);

    Result update(MainDataStationReq req, TokenUser currentUser);

    Result modifyStatus(StationUpdateStatusReq stationUpdateStatusReq, TokenUser currentUser);

    List<MainDataStationDTO> listAll();
}
